package fti.uksw.ruang.model;

import android.os.Parcel;
import android.os.Parcelable;

public class CalendarList implements Parcelable {

	public static final String TAG = "calendarlist";
	public static final String TABLEBNAME = "tbcalendar_list";
	public static final String ID = "id";
	public static final String CALENDARTITLE = "calendar_title";
	public static final String JENIS = "jenis";
	public static final String KAPASITAS = "kapasitas";
	public static final String CALENDARID = "calendar_id";

	private int id;
	private String calendarTitle;
	private String jenis;
	private int kapasitas;
	private String calendarId;

	public CalendarList() {
	}

	public CalendarList(Parcel in) {
		readFromParcel(in);
	}

	public String getCalendarId() {
		return calendarId;
	}

	public void setCalendarId(String calendarId) {
		this.calendarId = calendarId;
	}

	public String getCalendarTitle() {
		return calendarTitle;
	}

	public void setCalendarTitle(String calendarTitle) {
		this.calendarTitle = calendarTitle;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getJenis() {
		return jenis;
	}

	public void setJenis(String jenis) {
		this.jenis = jenis;
	}

	public int getKapasitas() {
		return kapasitas;
	}

	public void setKapasitas(int kapasitas) {
		this.kapasitas = kapasitas;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeString(calendarTitle);
		dest.writeString(jenis);
		dest.writeInt(kapasitas);
		dest.writeString(calendarId);
	}

	private void readFromParcel(Parcel in) {
		id = in.readInt();
		calendarTitle = in.readString();
		jenis = in.readString();
		kapasitas = in.readInt();
		calendarId = in.readString();
	}

	public static final Parcelable.Creator<CalendarList> CREATOR = new Parcelable.Creator<CalendarList>() {

		@Override
		public CalendarList createFromParcel(Parcel source) {
			return new CalendarList(source);
		}

		@Override
		public CalendarList[] newArray(int size) {
			return new CalendarList[size];
		}
	};
}
